1 link tagged with all of: cloudflare + cache rules + caching
Click any tag below to further narrow down your results
Links
This is Cloudflare's documentation for Cache Deception Armor, a cache rule that stops attackers from tricking the CDN into caching a logged-in user's personal page under a fake static-file URL. It checks that a file's extension matches its returned Content-Type and skips caching when they don't line up.
- The attack works when an origin serves the same dynamic page for a fake path like /newsfeed/foo.jpg, so Cloudflare caches the user's personalized response by default.
- Cache Deception Armor keeps caching for real static assets but refuses to cache any response where the extension and Content-Type mismatch.
- Responses typed application/octet-stream are exempt, and harmless mismatches like .jpg served as image/webp are allowed.